package com.glc.hms.config;

import lombok.Getter;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

/**
 * @author Santa
 * @since 2019/11/14
 */
@Getter
@Setter
@PropertySource(value = {"classpath:token.properties"},encoding = "UTF-8")
@Configuration
public class TokenProperties {
    @Value("${header.secret.key}")
    private String secretKey;

    @Value("${token.refresh.time}")
    private int refreshTime;

    @Value("${token.valid.time}")
    private int validTime;

}























